package com.relanet.dao;

import com.relanet.model.NlpWeibo;

/**
 * 博文表操作类
 * @author buzc
 * @since 2011-9-26
 */
public interface INlpWeiboDao {
	public static final String table_name = "nlp_weibo";
	public static final String wid = "wid"; // 微博ID
	public static final String weibo = "weibo"; // 微博内容
	public static final String uid = "uid"; // 发布者
	public static final String nickname = "nickname"; // 作者昵称
	public static final String addtime = "addtime"; // 发布时间
	public static final String disabled = "disabled"; // 是否被屏蔽
	public static final String pic = "pic"; // 图片url
	public static final String old_wid = "old_wid"; // 原微博id(记录转发微博id)
	
	/**
	 * 新增一条博文
	 * @param weibo
	 * @return
	 */
	public boolean add(NlpWeibo weibo);

	/**
	 * 转发一条博文
	 * @param weibo
	 * @return
	 */
	public boolean forward(NlpWeibo weibo);
	
	/**
	 * 删除一条博文
	 * @param weibo
	 * @return
	 */
	public boolean delete(NlpWeibo weibo);
	
	/**
	 * 根据发博文的用户ID查询相应博文
	 * @param uid
	 * @return
	 */
	public NlpWeibo getWeiboByUid(long uid);
}
